<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}

// 当为ajax模块时不加载公用数据，提高访问效率，当为网页打开直接加载Ajax请求时同时重复获取公用数据（如包含比较大的数据），导致加载网页加载很慢
if(empty($configinfo['ajaxmodule']) || moduleaqvarval('ajaxonload','intval') == 1)
{
	// 加载模块参数扩展功能配置
	if($configinfo['installmodule'] == "default")
	{
		require(MODULEPARA_PATH . '/modulepara-'.VERSION_NUMBER.'/config/moduleexpdefault.php');
		
	// 安装其它模块参数扩展功能配置
	// installmodule为other时
	}else{
		require(MODULEPARA_PATH . '/modulepara-'.VERSION_NUMBER.'/config/moduleexpother.php');	
	}
	
	// 开启MVC框架模式
	if($configinfo['mvc'] == 1)
	{
		$this->_MGPC_POST = $_MGPC_POST;
		$this->_MGPC_GET = $_MGPC_GET;
		$this->_MGPC_REQ = $_MGPC_REQ;
		$this->_MGPC_COOKIE = $_MGPC_COOKIE;
		$this->_MGPC_SESSION = $_MGPC_SESSION;
		$this->configlang = $configlang;
		$this->configinfo = $configinfo;
		$this->configblock = $configblock;
		$this->configcommon = $configcommon;
		$this->configmember = $configmember;
		$this->configbase = $configbase;
		$this->configsystem = $configsystem;
		$this->configindex = $configindex;
		$this->configother = $configother;
		$this->smarty_assign('_MGPC_POST',     $_MGPC_POST);
		$this->smarty_assign('_MGPC_GET',     $_MGPC_GET);
		$this->smarty_assign('_MGPC_REQ',     $_MGPC_REQ);
		$this->smarty_assign('_MGPC_COOKIE',     $_MGPC_COOKIE);
		$this->smarty_assign('_MGPC_SESSION',     $_MGPC_SESSION);
		$this->smarty_assign('configlang',     $configlang);
		$this->smarty_assign('configinfo',     $configinfo);
		$this->smarty_assign('configblock',     $configblock);
		$this->smarty_assign('configcommon',     $configcommon);
		$this->smarty_assign('configmember',     $configmember);
		$this->smarty_assign('configbase',     $configbase);
		$this->smarty_assign('configsystem',     $configsystem);
		$this->smarty_assign('configindex',     $configindex);
		$this->smarty_assign('configother',     $configother);
	}else{
		smarty_assign('_MGPC_POST',     $_MGPC_POST);	
		smarty_assign('_MGPC_GET',     $_MGPC_GET);	
		smarty_assign('_MGPC_REQ',     $_MGPC_REQ);
		smarty_assign('_MGPC_COOKIE',     $_MGPC_COOKIE);
		smarty_assign('_MGPC_SESSION',     $_MGPC_SESSION);
		smarty_assign('configlang',     $configlang);
		smarty_assign('configinfo',     $configinfo);
		smarty_assign('configblock',     $configblock);
		smarty_assign('configcommon',     $configcommon);
		smarty_assign('configmember',     $configmember);
		smarty_assign('configbase',     $configbase);
		smarty_assign('configsystem',     $configsystem);
		smarty_assign('configindex',     $configindex);
		smarty_assign('configother',     $configother);
	}
}
?>